#include<iostream>
using namespace std;

int w, x, h, q;
int x1, y1, z1, x2, y2, z2;
int main()
{
    cin >> w >> x >> h;
    cin >> q;
    
    while(q--)
    {
        cin >> x1 >> y1 >> z1 >> x2 >> y2 >> z2;
    }
    return 0;
}